package com.hula.onion.book.server.config;

/**
 * Description:
 * Create Date:2018/1/18 16:56
 *
 * @author liangbing
 * @version 1.0
 */
public enum ResponseStatusEnum {

    SUCCESS("200", "success"),
    FAIL("500", "系统异常，请稍后再试！"),
    VERIFY_CODE_FAIL("40001", "验证码验证失败"),
    DATABASE_ERROR("40002", "数据库错误"),
    USER_NOT_EXIST("40003", "用户不存在"),
    PASSWORD_ERROR("40004", "密码错误"),
    MOBILE_ALREADY_REGIST("40005", "手机号已被注册"),
    WHCHAT_EXIST("40015", "该微信已注册"),
    QQ_EXIST("40025", "该QQ号已注册"),
    SMS_CODE_SIGIN_FAIL("40006", "验证码发送签名错误"),
    SMS_CODE_TYPE_FAIL("40007", "验证码发送类型错误"),
    PARAMS_ERROR("40008","参数错误"),
    ACCOUNT_ERROR("400", "用户名或密码错误"),
    QUERY_FAIL("401", "查询失败，请稍后重试！"),
    NEED_CAPTURE("201", "请输入图片验证码！");

    private String msg;
    private String code;

    ResponseStatusEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
